﻿using System;
using System.Collections.Generic;
using System.Text;

namespace hedefgrup.reports.common
{
    public class Cell
    {
        public string Color;
        public int Span;
        public int TextLimit = int.MaxValue;
        private string text;

        public string Text
        {
            get
            {
                return text != null ? text.Length >= TextLimit ? text.Substring(0, TextLimit - 3) + "..." : text : text;
            }
            set
            {
                text = value;
            }
        }

        public string FullText
        {
            get
            {
                return text;
            }
        }

        public string TextAlign;

        public bool Bold;
    }
}
